package com.ws.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ws
 * @create 2024-11-23 20:06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MyException extends RuntimeException {

    private Integer code;

    private String msg;

    @Override
    public String toString(){
        return "MyException{" +

        "message=" + msg +

        ", code=" + code +

        '}';
    }
}
